#import "Screen.h"
@implementation Screen
@synthesize image;
-(id)init{
    if([super init]){
        state=0;
    }
    return self;
}
- (void) paintScreen{
    
}
-(void)drawRect:(CGRect)rect{
	[super drawRect:rect];
	[self paintScreen ];
}
- (void) action:(int)x y:(int) y{
    
}
- (int) stateMachine{
    return state;
}
// Handles the end of a touch event when the touch is a tap.
- (void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event
{
	[super touchesEnded:touches withEvent:event];
	UITouch*	touch = [[event touchesForView:self] anyObject];
    CGPoint point= [touch locationInView:self];
    [self action:point.x y:point.y];   
}


@end